package com.eclink.asset.consume.convert;

import com.eclink.asset.consume.domain.dao.ConsumeCategory;
import com.eclink.asset.consume.domain.dto.ConsumeCategoryDTO;
import com.eclink.asset.consume.domain.vo.ConsumeCategoryVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 资产分类表  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring")
public interface ConsumeCategoryConvert {

    /**
     * @param source DTO
     * @return DO
     */
    ConsumeCategory dto2do(ConsumeCategoryDTO source);

    List<ConsumeCategoryVO> dos2vos(List<ConsumeCategory> list);
}
